package com.ssyan.boot.service;

import com.ssyan.boot.entity.User;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * @author ssyan
 * @Description 业务层接口
 * @create 2021/8/17 16:53
 * @Version 1.0
 */
public interface UserService {

    //根据id查询
    public Mono<User> getUserById(Integer id);
    
    //查询所有用户
    public Flux<User> getAllUser();

    //新增用户
    public Mono<Void> addUser(Mono<User> userMono);
}
